#include<bits/stdc++.h>
using namespace std;

int main() {
	int t;
	cin >> t;
	while(t -- ) {
		string s;
		cin >> s;
		int p = s.find("https://ac.nowcoder.com");
		if(p != -1 || s.find("ac.nowcoder.com") != -1) {
			cout << "Ac" << endl;
		} else if(s.find("https://www.nowcoder.com") != -1 || s.find("www.nowcoder.com") != -1) {
			
		} else {
			cout << "No" << endl;
		}
	}
	return 0;
}

